In the cleanup_module function, you clean up by cancelling the timer with hrtimer_cancel. 在cleanupmodule函数中,通过调用hrtimercancel来取消计时器。
The load_file() function is the one that will act as the function when the timer is triggered. loadfile()函数是触发计时器时调用的函数。
These functions differ in that the hrtimer_cancel function attempts to cancel the timer, but if it has already fired, it will wait for the callback function to finish. 这两个函数的区别在于:hrtimercancel函数试图取消计时器,但如果计时器已经发出,那么它将等待回调函数结束;
Each function includes the hrtimer reference as the timer to be stopped. 每个函数都包含将被停止的计时器的hrtimer引用。
The same function is used to load the original and will be used during the callback by the timer event. 在装载最初的文件时和在计时器触发回调时都使用此函数。
From a user's perspective, timer_list contains an expiration time, a callback function ( when/ if the timer expires), and a user-provided context. 从用户角度看,timerlist包含一个过期时间,一个回调函数(当/如果计时器过期),以及一个用户提供的上下文。
Otherwise, the user can set these values ( function and data) in the timer and simply call init_timer. 或者,用户可以设置计时器中的这些值(函数和数据)并简单地调用inittimer。
This function is called to start a timer. 这个函数被调用来启动定时器。
By calling this function at the beginning and end of a section of code, an application essentially uses the counter as a high-resolution timer. 应用程序在一个代码段的前后调用这个函数来使用高性能计数器。
This scheme is applied to the human interface of computer knitting machine, basically benefiting from the strong function of STM32* DMA transmission and advanced application of the timer. 本方案能成功应用在电脑横机的人际界面显示中,主要得益于STM32的强大功能:DMA传输以及高级定时器等的应用。
Basic function, and add: Phototherapy ( blue light) unit, LED display timer, display treatment time and total time. 在基本配置上:增加蓝光治疗装置,LED数显计时器,显示治疗时间和累计时间。
If the function fails to create a timer, the return value is zero. 如果函数创建计时器失败。返回值是零。
This state object is passed to your timer callback function during each timer event invocation. 在每一个定时器事件被调用时该state对象作为一个参数传递给你的定时回调函数。
Macro or function that runs when timer interval reaches zero 当计时器时间间隔为零时所执行的宏或函数
Adopted principle is append a database which has a realtime function of base on traditionary Unix. It also expatiated the dispatch stratagem of realtime I/ O, memory manage, course attemper, clock and timer etc. 并结合实际应用,通过附加一个实时库,增加一些实时功能的方法,阐述了Unix在实时I/O、内存管理、进程调度、时钟和定时器等方面的实现策略。
The timing function of timer 定时器的定时性能
The timer of Chinese Visual FoxPro 6.0 hase not only the function of timer, but also of designing dynamic effect in the form, such as moving electronical title bar? playing motive pictures and dynamic variety of the font in size and color. 中文VF6.0中的计时器不仅具有计时的作用,还可以用来设计表单的动态效果,如移动的电子标题板、播放动画、字体大小和颜色的动态变化等等。
Based on the generalized model and transformation function of the charge balancing A/ D converters, this article demonstrates that non ideal properties of the timer and integrator are main factors, which result in the nonlinearity. 本文在提出电荷平衡式A/D转换器通用等效模型的基础上,推导其相应传递函数,重点分析了非理想情况下定时及积分环节引起的非线性误差特点及其物理原因。
The paper has introduced the function of timing task in intelligence digital surveillance system. It has given methods of realizing timing task based on timer and multi route, and used the methods in VC++ programming environment. 介绍了定时任务在智能视频监控系统中的作用,给出了基于定时器和多线程两种定时任务的实现方法,并在VC++环境中给予了具体的实现。
In addition to the function of a universal timer's function, the device can generate interrupt request and control the output signal, and it can selectively capture the time at which an external event occurs. 它除了具有通用定时器的功能以外,还可以实现输出中断和信号控制,以及选择确定输入信号出现的时间。
Using the capture function of DSP and altering the period of timer, the phase-following can be realized fleetly and calmly. 采用DSP的捕获功能和改变计时器的周期值可快速、平稳地实现单台逆变器对并联交流母线相位和频率的跟踪。
The functions to separate the real-time serial data received and achieve the dynamic storage for the data to database utilizing the user-defined-message function during communication, as well as display the serial data dynamically in the document-window realizing by the timer technology are programmed and realized. 并重点编程实现了利用自定义消息函数把接收到的实时串行数据进行有效分离、在通信时实现数据向数据库的动态转存,以及利用定时器技术实现串行数据在文档窗口的动态显示等功能。
Taking into account the system measures, such as the power saving ratio and the packet average response time, we construct a cost function to give the optimal time length of the sleep-delay timer. 同时考虑能量节省率和响应时间等性能指标,构造成本函数,给出Ⅲ型休眠模式中休眠延迟定时器的优化设置方案。
Develops the procedure function on the ship stability calculation in static state. The paper researches the manners on the InterProcess Communication, decides do read-write operation on files and sets timer function to realize dynamic data exchange between InterProcesses. 对静态船舶稳性计算的程序功能进行了拓展,进程间通信的方式进行了研究,采取了对文件进行读写操作的方式和设定定时器实现进程间数据的动态交换。
The electronic components used by functional modules are analyzed and selected. By researching of the system software function, analog input channel processing and serial port and timer interrupt handling are designed. 通过对系统软件功能的研究,设计了模拟输入通道处理、串口中断处理和定时器中断处理软件三大模块。